package com.xiaoyu.izf.model;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Objects;

@Entity
@Table(name = "vip_info", schema = "izf", catalog = "")
public class VipInfo {
    private int id;
    private String vipName;
    private Integer vipPrice;
    private Integer vipViewPrice;
    private Integer vipSplite;
    private Integer vipGradeSplite;
    private BigDecimal payRate;
    private Integer serverSplite;
    private Integer serverGradeSplite;
    private String appViewPic;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "vip_name")
    public String getVipName() {
        return vipName;
    }

    public void setVipName(String vipName) {
        this.vipName = vipName;
    }

    @Basic
    @Column(name = "vip_price")
    public Integer getVipPrice() {
        return vipPrice;
    }

    public void setVipPrice(Integer vipPrice) {
        this.vipPrice = vipPrice;
    }

    @Basic
    @Column(name = "vip_view_price")
    public Integer getVipViewPrice() {
        return vipViewPrice;
    }

    public void setVipViewPrice(Integer vipViewPrice) {
        this.vipViewPrice = vipViewPrice;
    }

    @Basic
    @Column(name = "vip_splite")
    public Integer getVipSplite() {
        return vipSplite;
    }

    public void setVipSplite(Integer vipSplite) {
        this.vipSplite = vipSplite;
    }

    @Basic
    @Column(name = "vip_grade_splite")
    public Integer getVipGradeSplite() {
        return vipGradeSplite;
    }

    public void setVipGradeSplite(Integer vipGradeSplite) {
        this.vipGradeSplite = vipGradeSplite;
    }

    @Basic
    @Column(name = "pay_rate")
    public BigDecimal getPayRate() {
        return payRate;
    }

    public void setPayRate(BigDecimal payRate) {
        this.payRate = payRate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        VipInfo vipInfo = (VipInfo) o;
        return id == vipInfo.id &&
                Objects.equals(vipName, vipInfo.vipName) &&
                Objects.equals(vipPrice, vipInfo.vipPrice) &&
                Objects.equals(vipViewPrice, vipInfo.vipViewPrice) &&
                Objects.equals(vipSplite, vipInfo.vipSplite) &&
                Objects.equals(vipGradeSplite, vipInfo.vipGradeSplite) &&
                Objects.equals(payRate, vipInfo.payRate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, vipName, vipPrice, vipViewPrice, vipSplite, vipGradeSplite, payRate);
    }

    @Basic
    @Column(name = "server_splite")
    public Integer getServerSplite() {
        return serverSplite;
    }

    public void setServerSplite(Integer serverSplite) {
        this.serverSplite = serverSplite;
    }

    @Basic
    @Column(name = "server_grade_splite")
    public Integer getServerGradeSplite() {
        return serverGradeSplite;
    }

    public void setServerGradeSplite(Integer serverGradeSplite) {
        this.serverGradeSplite = serverGradeSplite;
    }

    @Basic
    @Column(name = "app_view_pic")
    public String getAppViewPic() {
        return appViewPic;
    }

    public void setAppViewPic(String appViewPic) {
        this.appViewPic = appViewPic;
    }
}
